package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 活动主表
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Activity extends Model<Activity> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 活动图片
     */
    private String activityImage;

    /**
     * 活动详情
     */
    private String activityIntro;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人ID
     */
    private String createUserId;

    /**
     * 创建人名称
     */
    private String createUser;

    /**
     * 活动宣传视频
     */
    private String activityVideo;

    /**
     * 活动标题
     */
    private String activityTitle;

    /**
     * 活动类型 0首页活动 1门店热门活动
     */
    private Integer activityType;

    /**
     * 门店id
     */
    private String shopId;

    /**
     * 所属俱乐部ID
     */
    private String clubId;

    /**
     * 活动状态0-下架1-上架
     */
    private Integer status;

    /**
     * 活动排序
     */
    private Long sort;


    public static final String ID = "id";

    public static final String ACTIVITY_IMAGE = "activity_image";

    public static final String ACTIVITY_INTRO = "activity_intro";

    public static final String CREATE_TIME = "create_time";

    public static final String CREATE_USER_ID = "create_user_id";

    public static final String CREATE_USER = "create_user";

    public static final String ACTIVITY_VIDEO = "activity_video";

    public static final String ACTIVITY_TITLE = "activity_title";

    public static final String ACTIVITY_TYPE = "activity_type";

    public static final String SHOP_ID = "shop_id";

    public static final String CLUB_ID = "club_id";

    public static final String STATUS = "status";

    public static final String SORT = "sort";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
